<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="pojo.*,service.*,java.util.*,java.text.*"%>

<%
request.setCharacterEncoding("UTF-8");

int id = (Integer)session.getAttribute("id");
String oldpw=request.getParameter("opw");

ManagerService manager=new ManagerService();
	manager_infor ma=manager.getManagerByid(id);
	if(oldpw.equals(ma.getPassword())){
		response.getWriter().write("{\"success\":true}");
	}
	else {response.getWriter().write("{\"success\":false}");}


%>

